package use;

import book.BookList;
import iopera.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-07-13
 * Time: 14:18
 */
public abstract class User {
    protected String name;
    protected IOperation[] iOperations;
    public User(String name) {
        this.name = name;
    }

    public abstract int meun();

    public void doWork(int choice, BookList bookList){
        this.iOperations[choice].work(bookList);
    }
}
